//package com.charley.icloud.admin.controller;
//
//import cn.hutool.core.bean.BeanUtil;
//import com.charley.icloud.admin.pojo.entity.SysLoginLogDO;
//import com.charley.icloud.admin.pojo.request.SysLoginLogQuery;
//import com.charley.icloud.admin.service.SysLoginLogService;
//import com.charley.icloud.common.response.http.HttpResult;
//import com.charley.icloud.datasource.page.PageRequest;
//import io.swagger.v3.oas.annotations.Operation;
//import io.swagger.v3.oas.annotations.Parameter;
//import io.swagger.v3.oas.annotations.enums.ParameterIn;
//import io.swagger.v3.oas.annotations.tags.Tag;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//import java.util.ArrayList;
//import java.util.List;
//
//@RestController
//@RequestMapping("/loginlog")
//@Tag(name = "登录日志控制器")
//public class SysLoginLogController {
//
//    @Resource
//    private SysLoginLogService sysLoginLogService;
//
//    @PostMapping(value = "/findPage")
//    @Operation(summary = "分页查询", description = "后台管理系统")
//    public HttpResult findPage(@RequestBody PageRequest pageRequest) {
//        return HttpResult.ok(sysLoginLogService.findPage(pageRequest));
//    }
//
//    @PostMapping(value = "/delete")
//    @Operation(summary = "删除登录日志", description = "后台管理系统")
//    @Parameter(name = "queries", description = "登录日志信息删除列表", required = true, in = ParameterIn.QUERY)
//    public HttpResult delete(@RequestBody List<SysLoginLogQuery> queries) {
//        List<SysLoginLogDO> records = new ArrayList<>();
//        if (queries != null && queries.size() > 0) {
//            for (SysLoginLogQuery query : queries) {
//                SysLoginLogDO sysLoginLogDO = new SysLoginLogDO();
//                BeanUtil.copyProperties(query, sysLoginLogDO, true);
//                records.add(sysLoginLogDO);
//            }
//        }
//        return HttpResult.ok(sysLoginLogService.delete(records));
//    }
//}
